package com.own.aop.permission;

import com.own.constant.ConstantLogic;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * PermissionOperations
 *
 * @author chenxueli
 * @date 2022-08-18 15:52:00
 */
@Target(ElementType.METHOD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface PermissionOperations {

    /**
     * 操作列表
     *
     * @return 操作列表
     */
    PermissionOperation[] value();

    /**
     * 各个操作间的逻辑
     *
     * @return 逻辑操作
     */
    String logic() default ConstantLogic.AND;

}
